QT       += core gui network concurrent opengl openglwidgets

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    PointCloudGenerator.cpp \
    aboutdialog.cpp \
    broadthread.cpp \
    crc32verifier.cpp \
    depthClouddataprocessor.cpp \
    depthIrdataprocessor.cpp \
    depthdataprocessor.cpp \
    depthvideowidget.cpp \
    deviceinfo.cpp \
    ftpclient.cpp \
    ftpmanager.cpp \
    irvideowidget.cpp \
    main.cpp \
    mainwindow.cpp \
    myopenglwidget.cpp \
    rgbcapture.cpp \
    rgbvideowidget.cpp \
    tcpDepthWorker.cpp \
    tcpIrWorker.cpp \
    tcpProtocolWorker.cpp \
    timeutils.cpp \
    videowidget.cpp

HEADERS += \
    PointCloudGenerator.h \
    aboutdialog.h \
    broadthread.h \
    crc32verifier.h \
    depthClouddataprocessor.h \
    depthIrdataprocessor.h \
    depthdataprocessor.h \
    depthvideowidget.h \
    deviceinfo.h \
    ftpclient.h \
    ftpmanager.h \
    irvideowidget.h \
    mainwindow.h \
    myopenglwidget.h \
    rgbcapture.h \
    rgbvideowidget.h \
    singleton.h \
    tcpDepthWorker.h \
    tcpIrWorker.h \
    tcpProtocolWorker.h \
    timeutils.h \
    videowidget.h

FORMS += \
    aboutdialog.ui \
    deviceinfo.ui \
    mainwindow.ui \
    rgbvideowidget.ui


# 添加 libcurl 到 LIBS
INCLUDEPATH += $$PWD/include
CONFIG(debug,debug|release){
LIBS += $$PWD/lib/libcurld.lib
}else{
LIBS += $$PWD/lib/libcurl.lib
}

LIBS += $$PWD/lib/avcodec.lib  \
        $$PWD/lib/avdevice.lib  \
    $$PWD/lib/avfilter.lib  \
    $$PWD/lib/avformat.lib  \
    $$PWD/lib/avutil.lib  \
    $$PWD/lib/postproc.lib  \
    $$PWD/lib/swresample.lib  \
    $$PWD/lib/swscale.lib  \

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    res.qrc
RC_ICONS = 3D.ico
